package com.home.model.dao;


import java.util.List;

import javax.ejb.Stateless;

import com.home.model.entity.District;

@Stateless
public class DistrictDao extends BaseDao<District>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * find district by city
	 * @param city
	 * @return
	 */
	public List<District> findDistrictByCity(long city) {
		return getAllDataByColumn("cityId", city);
	}
}
